From 6060194127c6c821b291f58639b62585b965a5b3 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Wed, 6 Feb 2013 22:48:27 +0000 Subject: [PATCH] Better handling of strptime being in C, but used by C++. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4282 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/strptime.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gpsbabel/strptime.h b/gpsbabel/strptime.h index 62a0c61df..3d37bfda7 100644 --- a/gpsbabel/strptime.h +++ b/gpsbabel/strptime.h @@ -27,7 +27,12 @@ /* * Version of "strptime()", for the benefit of OSes that don't have it. */ +#ifdef __cplusplus +extern "C" { +#endif extern char* strptime(const char*, const char*, struct tm*); - +#ifdef __cplusplus +} +#endif #endif -- 2.30.2